﻿@model ScrumPilot.Domain.Models.TaskForMove
@using (Ajax.BeginForm("TaskMove", "Tasks", null,
    new AjaxOptions { OnComplete = "return myPage.EditDialogComplete();" },
    new { @id = "MoveForm" }))
{
    @Html.HiddenFor(model => model.ID)
    <table style="width: 100%">
        <thead>
            <tr>
                <th style="padding: 6px; width: 45%">@Html.LabelFor(m => m.CurrentProject)
                </th>
                <th></th>
                <th style="padding: 6px; width: 45%">@Html.LabelFor(m => m.NewProjects)
                </th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td style="padding: 6px; font-size: 18px">@Html.DisplayFor(m => m.CurrentProject)
                </td>
                <td style="padding: 6px; font-size: 18px">=>
                </td>
                <td style="padding: 6px; font-size: 18px">
                    @Html.DropDownListFor(m => m.NewProjectId, Model.NewProjects)
                </td>
            </tr>
            <tr>
                <td colspan="3" style="padding: 12px; text-align: right">@Html.LabelFor(m => m.MoveOrCopy) @Html.CheckBoxFor(m => m.MoveOrCopy)
                </td>
            </tr>
        </tbody>
    </table>
}